import { createApp } from 'vue'
import App from './App.vue'
import {createPinia} from "pinia"
import router from "./router"
import ElementPlus from "element-plus"
import 'element-plus/dist/index.css'
import "./assets/global.less"
// 路由钩子
import "./utils/routerHook"
// 引入持久存储的插件
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"


let pinia = createPinia()
// 使用持久化存储
pinia.use(piniaPluginPersistedstate)


let app = createApp(App)
app.use(router)
app.use(pinia)
app.use(ElementPlus)
app.mount('#app')